﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using GFrame.Shadow;

namespace EZCRS.HCMS.Entity
{
    #region HCRS_RoomCode
    /// <summary>
    /// 
    /// </summary>
    [GTable("HCRS_RoomCode")]
    public class HCRS_RoomCode
   {
        private int? _id;
        private string _roomcode;
        private string _roomname;
        private string _roomtype;
        private string _bedtype;
        private int? _adult;
        private int? _adultadd;
        private int? _child;
        private int? _childadd;
        private int? _bedtotal;
        private int? _total;
        private string _squaremeter;
        private string _floor;
        private string _other;
        private string _remark;
        private int? _avaliable;
        private int? _pid;
        private int? _userid;
        private DateTime? _updatetime;
        private int? _languagetype;



        public HCRS_RoomCode()
        {}


        public HCRS_RoomCode(DataRow dr)
        {
            if (dr != null)
            {
                if(dr["id"].ToString()!="")_id=Convert.ToInt32(dr["id"].ToString());
                _roomcode=dr["roomcode"].ToString();
                _roomname=dr["roomname"].ToString();
                _roomtype=dr["roomtype"].ToString();
                _bedtype=dr["bedtype"].ToString();
                if(dr["adult"].ToString()!="")_adult=Convert.ToInt32(dr["adult"].ToString());
                if(dr["adultadd"].ToString()!="")_adultadd=Convert.ToInt32(dr["adultadd"].ToString());
                if(dr["child"].ToString()!="")_child=Convert.ToInt32(dr["child"].ToString());
                if(dr["childadd"].ToString()!="")_childadd=Convert.ToInt32(dr["childadd"].ToString());
                if(dr["bedtotal"].ToString()!="")_bedtotal=Convert.ToInt32(dr["bedtotal"].ToString());
                if(dr["total"].ToString()!="")_total=Convert.ToInt32(dr["total"].ToString());
                _squaremeter=dr["squaremeter"].ToString();
                _floor=dr["floor"].ToString();
                _other=dr["other"].ToString();
                _remark=dr["remark"].ToString();
                if(dr["avaliable"].ToString()!="")_avaliable=Convert.ToInt32(dr["avaliable"].ToString());
                if(dr["pid"].ToString()!="")_pid=Convert.ToInt32(dr["pid"].ToString());
                if(dr["userid"].ToString()!="")_userid=Convert.ToInt32(dr["userid"].ToString());
                if(dr["updatetime"].ToString()!="")_updatetime=Convert.ToDateTime(dr["updatetime"].ToString());
                if (dr["languagetype"].ToString() != "") _languagetype = Convert.ToInt32(dr["languagetype"].ToString());

            }
        }



        #region 公共属性 


         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("id", "pk")]
         [GField("id",  FieldTypeEnum.PK, true)]
         public int? id
         {
             get { return _id; }
             set { _id = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [GField("roomcode")]
         [DataFieldAttribute("roomcode")]
         public string roomcode
         {
             get { return _roomcode; }
             set { _roomcode = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [GField("roomname")]
         [DataFieldAttribute("roomname")]
         public string roomname
         {
             get { return _roomname; }
             set { _roomname = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [GField("languagetype")]
         [DataFieldAttribute("languagetype")]
         public int? languagetype
         {
             get { return _languagetype; }
             set { _languagetype = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("roomtype")]
         [GField("roomtype")]
         public string roomtype
         {
             get { return _roomtype; }
             set { _roomtype = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("bedtype")]
         [GField("bedtype")]
         public string bedtype
         {
             get { return _bedtype; }
             set { _bedtype = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("adult")]
         [GField("adult")]
         public int? adult
         {
             get { return _adult; }
             set { _adult = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("adultadd")]
         [GField("adultadd")]
         public int? adultadd
         {
             get { return _adultadd; }
             set { _adultadd = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("child")]
         [GField("child")]
         public int? child
         {
             get { return _child; }
             set { _child = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("childadd")]
         [GField("childadd")]
         public int? childadd
         {
             get { return _childadd; }
             set { _childadd = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("bedtotal")]
         [GField("bedtotal")]
         public int? bedtotal
         {
             get { return _bedtotal; }
             set { _bedtotal = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("total")]
         [GField("total")]
         public int? total
         {
             get { return _total; }
             set { _total = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("squaremeter")]
         [GField("squaremeter")]
         public string squaremeter
         {
             get { return _squaremeter; }
             set { _squaremeter = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("floor")]
         [GField("floor")]
         public string floor
         {
             get { return _floor; }
             set { _floor = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("other")]
         [GField("other")]
         public string other
         {
             get { return _other; }
             set { _other = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("remark")]
         [GField("remark")]
         public string remark
         {
             get { return _remark; }
             set { _remark = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("avaliable")]
         [GField("avaliable")]
         public int? avaliable
         {
             get { return _avaliable; }
             set { _avaliable = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("pid")]
         [GField("pid")]
         public int? pid
         {
             get { return _pid; }
             set { _pid = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("userid")]
         [GField("userid")]
         public int? userid
         {
             get { return _userid; }
             set { _userid = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("updatetime")]
         [GField("updatetime")]
         public DateTime? updatetime
         {
             get { return _updatetime; }
             set { _updatetime = value; }
         }



        #endregion


    }
    #endregion
}
